/**
 * Created with Intellij IDEA
 * Description
 * User:ASUS
 * Date:2024-05-10
 * Time:20:56
 */
import java.util.Scanner;
public class Test{
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            // 注意 hasNext 和 hasNextLine 的区别
            while(in.hasNextInt()){
                int a=in.nextInt();
                for(int i=0;i<a;i++){
                    for(int j=0;j<a;j++){
                        if(i==j||i+j==(a-1)){
                            System.out.print("*");
                        }else{
                            System.out.print(" ");
                        }
                    }
                    System.out.println();
                }
            }
        }


    public static void main2(String[] args) {
        int n=5;
        int i=2;
        for (;i<=Math.sqrt(n);i++){
            if(n%i==0){
                break;
            }
        }
        if(i >Math.sqrt(n)){
            System.out.println(n+"是素数!");
        }
    }
    public static void main1(String[] args) {
        int count=0;
        for(int i=0;i<=100;i++){
            if(i%10==9){
                count++;
            }
            if(i/10==9) {
                count++;
            }
        }
        System.out.println(count);
    }
  }
}